<?php
/**
 * Created by PhpStorm.
 * User: THINK
 * Date: 2017/8/25
 * Time: 14:01
 */

namespace Home\Controller;

use Think\Controller;

class contactController extends Controller
{
    public function index(){
        $index = M('article');
        $list = $index->limit(0,8)->select();
        $this->assign('list',$list);
        $indexs = M('announce');
        $lists = $indexs->order('posttime desc')->limit(0,1)->select();
        $this->assign('lists',$lists);

        $introduce = M('category');
        $listss =$introduce->where("id=10")->select();
        $this->assign('listss',$listss);
        $this->display();
    }
}